package Demo3;
import Demo2.Booklist;

public class ShowBook implements IFuntion{
    @Override
    public void work(Booklist booklist) {

        System.out.println("*******************************************************************************");
        int sz = booklist.getCount();//获取当前书籍数
        //遍历数组输出
        for (int i = 0; i < sz; i++) {
            System.out.println(booklist.getBook(i));
        }
        System.out.println("*******************************************************************************");
    }
}
